﻿<UserControl 
    xmlns:my="clr-namespace:SilverlightClientEngine.View.Components;assembly=SilverlightClientEngine"  
    xmlns:toolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit"  
    x:Class="ExampleSilverlight.GameMenuUC"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:menu="clr-namespace:MenuControl;assembly=MenuControl"
    mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="400">
    <Grid x:Name="LayoutRoot">
        <menu:MenuBar Canvas.ZIndex="1">
            <menu:MenuBarItem MenuText="File">
                <menu:MenuItem MenuText="Save" Click="SaveButton_Click"></menu:MenuItem>
                <menu:MenuItem MenuText="Exit" Click="ExitButton_Click"></menu:MenuItem>
            </menu:MenuBarItem>
            <menu:MenuBarItem MenuText="Interface">
                <menu:MenuItem MenuText="Navigator" Click="InterfaceNavigator_Click"></menu:MenuItem>
                <menu:MenuItem MenuText="Zoom Bar" Click="InterfaceZoomBar_Click"></menu:MenuItem>
            </menu:MenuBarItem>
            <menu:MenuBarItem MenuText="Game">
                <menu:MenuItem MenuText="Resource Properties" Click="ResourceProperties_Click"></menu:MenuItem>
            </menu:MenuBarItem>
            <menu:MenuBarItem MenuText="World">
                <menu:MenuItem MenuText="World Properties" Click="WorldProperties_Click"></menu:MenuItem>
                <menu:MenuItem MenuText="Map Global Properties" Click="MapGlobalProperties_Click"></menu:MenuItem>
            </menu:MenuBarItem>
            <menu:MenuBarItem MenuText="Items">
                <menu:MenuItem MenuText="ThingType Properties" Click="ThingTypeProperties_Click"></menu:MenuItem>
            </menu:MenuBarItem>
        </menu:MenuBar>
        <Grid x:Name="GameContainer" Canvas.Top="26" Canvas.ZIndex="0"></Grid>
        <my:MapNavigator x:Name="MapNavigator" HorizontalAlignment="Left" VerticalAlignment="Bottom" Canvas.ZIndex="1"/>
        <my:MapZoom x:Name="MapZoom" Canvas.ZIndex="1" HorizontalAlignment="Right"/>
    </Grid>
</UserControl>